home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PsL Monthly 1993 December
/
PSL Monthly Shareware CD-ROM (December 1993).iso
/
prgmming
/
dos
/
c
/
tcclib.exe
/
lha
/
CENTERF.C
< prev
next >
Wrap
C/C++ Source or Header
|
1989-07-18
|
272b
|
18 lines
void AtSay( int x, int y, char *s );
#include <stdio.h>
#include <string.h>
void CenterF( int y, char *fmt, ... )
{
char s[240];
va_list ap;
va_start( ap, format );
vsprintf( s, fmt, ap );
va_end( ap );
AtSay( ( 80 - strlen(s) ) / 2, y, s );
}